package com.edu.exam.enums.assessment;

import com.edu.exam.enums.core.BaseEnum;

/**
 * 作用域枚举
 */
public enum Scope implements BaseEnum {
    GLOBAL("GLOBAL", "全局"),
    SYSTEM("SYSTEM", "系统级"),
    ORGANIZATION("ORGANIZATION", "组织级"),
    DEPARTMENT("DEPARTMENT", "部门级"),
    MAJOR("MAJOR", "专业级"),
    CLASS("CLASS", "班级级"),
    COURSE("COURSE", "课程级"),
    EXAM("EXAM", "考试级"),
    PAPER("PAPER", "试卷级"),
    QUESTION("QUESTION", "题目级"),
    USER("USER", "用户级"),
    ROLE("ROLE", "角色级"),
    CUSTOM("CUSTOM", "自定义"),
    PROJECT("PROJECT", "项目级"),
    MODULE("MODULE", "模块级");

    private final String code;
    private final String description;

    Scope(String code, String description) {
        this.code = code;
        this.description = description;
    }

    @Override
    public String getCode() {
        return code;
    }

    @Override
    public String getDescription() {
        return description;
    }
}
